<div class="t-b-ac" <?php if($width!='') echo 'style="width:'.$width.'%"'?>>
	<div style="overflow: hidden">
	<div class="ti-ct">
		<h3><?php echo $items["title"];?></h3>
	</div>
	<?php if(isset($items["buttons"])):?>
	<div class="t-b-wr">
		<ul class="ul-none tbr">
		<?php 
		foreach($items["buttons"] as $button):
		if(is_array($button)):
		$option="";
		if(count($button['htmloption'])){
			foreach($button['htmloption'] as $key =>$value){
				$option .= " $key=\"$value\" ";
			}
		}
		?>
			<li><button<?php echo $option;?>><?php echo $button["label"]?></button></li>
		<?php else:?>
			<li><?php echo $button;?></li>
		<?php endif;?>
		<?php endforeach;?>
		</ul>
	</div>
	<?php endif;?>
	</div>
</div>
<script>
var $scrollingDiv = $(".t-b-ac");
$(window).scroll(function () {
	var pos = ($(window).scrollTop()<72)?72-$(window).scrollTop():0;
	$scrollingDiv
    .stop()
    //.animate({"marginTop": (pos) + "px"},500 );
    .css({"position": "fixed", "top":pos} );
})
</script>